﻿using EntityModel.PageListInfor;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace EntityModel.CommodityMent
{
    /// <summary>
    /// 商品评价表
    /// </summary>
    [Table("goods_appraises")]
    public class AikeApplet_goods_appraises : Pagination
    {
        /// <summary>
        /// 评价id
        /// </summary>
        [Key]
        public int id { get; set; }

        /// <summary>
        /// 店铺id
        /// </summary>
        public int shopId { get; set; }

        /// <summary>
        /// 订单id
        /// </summary>
        public int orderId { get; set; }

        /// <summary>
        /// 评价对象ID
        /// </summary>
        public int goodsId { get; set; }

        /// <summary>
        /// 商品规格id
        /// </summary>
        public int goodsSpecId { get; set; }

        /// <summary>
        /// 会员ID
        /// </summary>
        public int userId { get; set; }

        /// <summary>
        /// 商品评分
        /// </summary>
        public int goodsScore { get; set; }

        /// <summary>
        /// 服务评分
        /// </summary>
        public int serviceScore { get; set; }

        /// <summary>
        /// 时效评分
        /// </summary>
        public int timeScore { get; set; }

        /// <summary>
        /// 点评内容
        /// </summary>
        [MaxLength(2000)]
        public string content { get; set; }

        /// <summary>
        /// 店铺回复
        /// </summary>
        [MaxLength(2000)]
        public string shopReply { get; set; }

        /// <summary>
        /// 上传图片
        /// </summary>
        public string images { get; set; }

        /// <summary>
        /// 是否显示
        /// 1:显示 0:隐藏
        /// </summary>
        public int isShow { get; set; } = 1;

        /// <summary>
        /// 有效状态	
        /// 1:有效 0:无效
        /// </summary>
        public int dataFlag { get; set; } = 1;

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime createTime { get; set; }

        /// <summary>
        /// 商家回复时间
        /// </summary>
        public DateTime replyTime { get; set; }

        /// <summary>
        /// 订单上商品表自增ID
        /// </summary>
        public int orderGoodsId { get; set; }
    }
}
